//
//  MyButton.h
//  MvcTest
//
//  Created by SDMac on 15/5/12.
//  Copyright (c) 2015年 SDMac. All rights reserved.
//

#import <UIKit/UIKit.h>

// 创建block
typedef void(^tapHandler)(UIButton *sender);

@interface MyButton : UIButton

@property(nonatomic, strong)tapHandler handler;

+ (id)buttonWithType:(UIButtonType)buttonType frame:(CGRect)fram
                                              title:(NSString*)title
                                              handler:(tapHandler)handler;

@end
